using System;
using System.Collections.Generic;
using FPLibrary;
using UnityEngine;

namespace Pvp.Ecs
{
    public class IView : IDataComponent
    {
        public int EntityType { get; set; }
        public int SubType { get; set; }
        public bool IsInView { get; set; } = true;
    }

    /// <summary>
    /// 通用控制器
    /// </summary>
    public class IController : IDataComponent
    {
        public int ControllerId { get; set; }
        public Action MoveAction { get; set; }
        public Action SkillAction { get; set; }
    }

    /// <summary>
    /// 玩家输入
    /// </summary>
    public class IPlayerInput : ISingleDataComponent
    {
        public int inputPlayerId { get; set; }
        /// <summary>
        /// button按钮
        /// </summary>
        public int currentButtonIndex { get; set; }
        /// <summary>
        /// skillIndex
        /// </summary>
        public int skillIndexCode { get; set; }
        /// <summary>
        /// moveDir input
        /// </summary>
        public FPVector2 moveDir { get; set; }
    }
}